{% extends "base.html" %}
{% block title %}Личный кабинет{% endblock %}

{% block head %}
    {% if email == '' %}
        <meta http-equiv="refresh" content="0; {{login}}">
    {% endif %}
{% endblock %}


{% block contentheader %}
    Кабинет пользователя {{nick}}. <a href="{{logout}}">Выйти.</a>
{% endblock %}

{% block content %}
<div class="formdiv">
    <form action="/process_generating_pin" method="POST" enctype="multipart/form-data">            
        <input type="hidden" name="email" value={{email}}><br>
        <p>Пин-код</p>
        <input type="text" name="pin" size="4" value="{{pin}}"disabled>
        <input type="submit" value="Сгенерировать"><br>
    </form>
    <form action="/process_editing_player" method="POST" enctype="
    multipart/form-data">
        <input type="hidden" name="email" value={{email}}>
        <p>Имя</p>
        <input type="text" name="name" value={{nick}}><br>
        <p>Слова</p>
        <textarea name="words" rows="10" cols="15" scrolling="auto">{{words}}</textarea><br>
        <input type="submit" value="Готово">  
    </form>      
</div>
{% endblock %}